﻿#region * License - MIT/X11 *

// 
// Copyright (c) 2009 Michael Cummings
// 
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// 
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
// 
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

#endregion

namespace SharpVG
{
    public enum PathPosition
    {
        Absolute = 0,
        Relative = 1
    }

    public enum PathSegment
    {
        Close = (0x0 << 1),
        MoveTo = (0x1 << 1),
        LineTo = (0x2 << 1),
        HLineTo = (0x3 << 1),
        VLineTo = (0x4 << 1),
        QuadTo = (0x5 << 1),
        CubicTo = (0x6 << 1),
        SQuadTo = (0x7 << 1),
        SCubicTo = (0x8 << 1),
        SccWArcTo = (0x9 << 1),
        ScWArcTo = (0x10 << 1),
        LccWArc = (0x11 << 1),
        LcWArc = (0x12 << 1)
    }

    public enum PathCommand
    {
        ClosePath = PathSegment.Close,
        MoveToAbsolute = PathSegment.MoveTo | PathPosition.Absolute,
        MoveToRelative = PathSegment.MoveTo | PathPosition.Relative,
        LineToAbsolute = PathSegment.LineTo | PathPosition.Absolute,
        LineToRelative = PathSegment.LineTo | PathPosition.Relative,
        HLineToAbsolute = PathSegment.HLineTo | PathPosition.Absolute,
        HLineToRelative = PathSegment.HLineTo | PathPosition.Relative,
        VLineToAbsolute = PathSegment.VLineTo | PathPosition.Absolute,
        VLineToRelative = PathSegment.VLineTo | PathPosition.Relative,
        QuadToAbsolute = PathSegment.QuadTo | PathPosition.Absolute,
        QuadToRelative = PathSegment.QuadTo | PathPosition.Relative,
        CubicToAbsolute = PathSegment.CubicTo | PathPosition.Absolute,
        CubicToRelative = PathSegment.CubicTo | PathPosition.Relative
    }
}